home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / libcalls / battmem.inc < prev    next >
Text File  |  1998-06-24  |  617b  |  27 lines

  1. pattern ObtainBattSemaphore is
  2.     push a6;
  3.     a6:=BattMemBase; jsr [a6-6];
  4.     pop a6;
  5. endp;                                                            # OBTAINBATTSEMAPHORE
  6.  
  7. pattern ReleaseBattSemaphore is
  8.     push a6;
  9.     a6:=BattMemBase; jsr [a6-12];
  10.     pop a6;
  11. endp;                                                            # RELEASEBATTSEMAPHORE
  12.  
  13. pattern ReadBattMem(_buffer,_offset,_length) is
  14.     push a6;
  15.     safe a0:=_buffer; d0.l:=_offset; d1.l:=_length;;
  16.     a6:=BattMemBase; jsr [a6-18];
  17.     pop a6;
  18. endp;                                                            # READBATTMEM
  19.  
  20. pattern WriteBattMem(_buffer,_offset,_length) is
  21.     push a6;
  22.     safe a0:=_buffer; d0.l:=_offset; d1.l:=_length;;
  23.     a6:=BattMemBase; jsr [a6-24];
  24.     pop a6;
  25. endp;                                                            # WRITEBATTMEM
  26.  
  27.